<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <c:import url="common.jsp"></c:import>
    <title>注册</title>
</head>
<body>
<c:import url="nav.jsp"></c:import>
<div class="col-md-12" style="padding-top: 50px">
    <div class="col-md-4"></div>
    <div class="col-md-8">
        <form action="adduser.action" method="post" class="form-horizontal">
            <div class="form-group">
                <div class="col-md-8">
                    <label for="name">用户名：</label>
                    <input type="text" class="form-control" id="name" name="name" placeholder="请输入用户名">

                </div>
            </div>
            <div class="form-group">
                <div class="col-md-8">
                    <label for="pass">密码：</label>
                    <input type="password" class="form-control"
                           id="pass" name="pass" maxlength="200" placeholder="请输入密码">
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-8">
                <label for="tel">电话：</label>
                    <input type="text" class="form-control"
                           id="tel" name="tel" placeholder="请输入电话号码">
                </div>
            </div>
            <div class="form-group">
                <div class="col-md-8">
                <label for="rid">角色：</label>
                <select class="form-control" id="rid" name="rid">
                    <c:forEach items="${roles}" var="role">
                        <option value="${role.rid}">${role.rname}</option>
                    </c:forEach>
                </select>
                </div>
            </div>
            <div style="text-align: center">
            <button type="submit" class="btn btn-primary">REGISTER</button>
            </div>
        </form>
    </div>
</div>
</body>
</html>